﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace GBlog.Core.Service
{
    public interface IContentService<T> where T : class
    {
        IQueryable<T> GetAll();
        T GetByID(int ID);
        void Insert(T content);
        void Update(T content);
        void Delete(T content);
        int Count(Expression<Func<T, bool>> Predicate);
        int Count();
    }
}